#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
	public class ProtocolCategory : ConfigCategory
	{
		public override void OnInit()
		{
			name = "Protocol";
		}

		public override void OnDrawAction()
		{
			ProtocolSetting setting = UserSetting.ProtocolSetting;
			EditorGUILayout.Space();
			EditorGUILayout.LabelField("Proto输入路径", EditorStyles.boldLabel);
			GUILayout.BeginVertical("box");
			{
				setting.git_proto_url = EditorGUILayout.TextField("git proto", setting.git_proto_url);
                EditorGUILayout.Space();
                setting.proto_repo = EditorGUILayout.TextField("proto repo", setting.proto_repo);
                EditorGUILayout.Space();
                setting.git_branch = EditorGUILayout.TextField("git branch", setting.git_branch);
                EditorGUILayout.Space();
		    }
		    GUILayout.EndVertical();
		    EditorGUILayout.Space();
            EditorGUILayout.LabelField("Proto输出路径", EditorStyles.boldLabel);
		    GUILayout.BeginVertical("box");
		    {
		        setting.path_output_lua_proto = EditorGUILayout.TextField("lua proto", setting.path_output_lua_proto);
                EditorGUILayout.Space();
		    }

            GUILayout.EndVertical();
			EditorGUILayout.Space();
		}
	}
}
